package jp.co.piratealliance.pirateAllianceWeb.web.action.pay;

import jp.co.piratealliance.pirateAllianceWeb.common.base.BaseAction;
import jp.co.piratealliance.pirateAllianceWeb.dto.com.ResultDto;

/**
 * copyright   pirate alliance team 2014
 * @author     xuwei
 *
 */
public class PayAction extends BaseAction
{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 卡类型
	 */
	private String cardType;

	/**
	 * 卡号
	 */
	private String cardNo;

	/**
	 * 卡名义人
	 */
	private String cardName;

	/**
	 * 卡有效期
	 */
	private String cardValidityPeriod ;

	/**
	 * 卡安全code
	 */
	private String cardCode;

	/**
	 * 结果
	 */
	private ResultDto resultDto;

	/**
	 * 支付
	 * @return
	 */
	public String pay()
	{
		boolean payResult = true;

		resultDto = new ResultDto();
		resultDto.setResult(payResult);
		resultDto.setMessage("");

		return SUCCESS;
	}

	/**
	 * @return the cardType
	 */
	public String getCardType()
	{
		return cardType;
	}

	/**
	 * @param cardType the cardType to set
	 */
	public void setCardType(String cardType)
	{
		this.cardType = cardType;
	}

	/**
	 * @return the cardNo
	 */
	public String getCardNo()
	{
		return cardNo;
	}

	/**
	 * @param cardNo the cardNo to set
	 */
	public void setCardNo(String cardNo)
	{
		this.cardNo = cardNo;
	}

	/**
	 * @return the cardName
	 */
	public String getCardName()
	{
		return cardName;
	}

	/**
	 * @param cardName the cardName to set
	 */
	public void setCardName(String cardName)
	{
		this.cardName = cardName;
	}

	/**
	 * @return the cardValidityPeriod
	 */
	public String getCardValidityPeriod()
	{
		return cardValidityPeriod;
	}

	/**
	 * @param cardValidityPeriod the cardValidityPeriod to set
	 */
	public void setCardValidityPeriod(String cardValidityPeriod)
	{
		this.cardValidityPeriod = cardValidityPeriod;
	}

	/**
	 * @return the cardCode
	 */
	public String getCardCode()
	{
		return cardCode;
	}

	/**
	 * @param cardCode the cardCode to set
	 */
	public void setCardCode(String cardCode)
	{
		this.cardCode = cardCode;
	}

	/**
	 * @return the resultDto
	 */
	public ResultDto getResultDto()
	{
		return resultDto;
	}

	/**
	 * @param resultDto the resultDto to set
	 */
	public void setResultDto(ResultDto resultDto)
	{
		this.resultDto = resultDto;
	}
}
